package com.scanf;
import java.util.Scanner;
public class scanf {
    public static void main(String[] args) {
        Scanner user=new Scanner(System.in);

        System.out.println("请输入您的姓名:");
        String name=user.next();
        System.out.println("姓名为:"+name);

        System.out.println("请输入您的年龄");
        int age= user.nextInt();
        System.out.println("年龄为:"+age);

        System.out.println("请输入您选的课程:");
        String course=user.next();
        System.out.println("课程为:"+course);

        System.out.println("请输入您的成绩:");
        double grade=user.nextDouble();
        System.out.println("成绩为:"+grade);


        System.out.println("我是"+name+"，今年"+age+"，选的课程为"+course+"，成绩是"+grade);
    }

}
